package com.hbjycl.entity;

import org.hibernate.annotations.IndexColumn;
import org.hibernate.annotations.Type;

import javax.persistence.*;
import java.util.Set;

/**
 * 课件
 *
 * @author wxp
 *
 * @datetime 2014年7月23日上午10:01:52
 */
@Entity
public class Courseware extends BaseEntity
{
    private static final long serialVersionUID = -8031755517681308441L;

    private String title; //标题
    private String content; //内容
    private String code; //代码块
    private String pulishTime; //发布时间

    public String getTitle()
    {
        return title;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    @Lob
    @Type(type = "org.hibernate.type.StringClobType")
    @Column
    public String getContent()
    {
        return content;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getPulishTime()
    {
        return pulishTime;
    }

    public void setPulishTime(String pulishTime)
    {
        this.pulishTime = pulishTime;
    }
}
